package com.mdd.front.validate.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 订单结算参数
 */
@Data
@ApiModel(value = "订单结算参数")
public class OrderSettleValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "购买类型参数缺失")
    @ApiModelProperty("购买类型 [buyNow=立即购买, cart=购物车]")
    private String buyType;

    @ApiModelProperty(value = "地址ID")
    private Integer addressId;

    @ApiModelProperty(value = "优惠券领取记录ID")
    private List<Integer> couponListId;

    @ApiModelProperty(value = "备注")
    private String remark;
    
    @ApiModelProperty(value = "对方用户ID")
    private Integer toUserId;
    
    @ApiModelProperty("分享者ID")
    private Integer shareUserId;
    
    @NotNull(message = "订单商品参数缺失")
    @ApiModelProperty(value = "订单商品信息")
    private List<BuyGoodsValidate> buyGoods;



}
